package com.vincent.sciinfo.service;

import com.github.pagehelper.PageInfo;
import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Patent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-patent", configuration = FeignPassToken.class)
public interface PatentService {

    @RequestMapping("/patent/show_patent")
    PageInfo showPatent(@RequestParam String Id, @RequestParam int ope, @RequestParam(value = "pn", defaultValue = "1") int pn);

    @RequestMapping("/patent/add_patent")
    int insertPatent(@RequestBody(required = false) Patent patent);
}
